package org.hongqi.common.senpec.base.spring.security.authenticaiton;

import org.hongqi.common.senpec.base.sevlet.Result;
import org.hongqi.common.senpec.sys.user.User;


public interface AuthenticationService {

    Result<User> registerUser(User user);

    Result<AuthenticationModel> handleAuthenticateSuccess();

    Result<AuthenticationModel> handleAuthenticateFail();

    Result<User> login(User user);

    Result<?> logout(String username);
}
